import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[3];
        int tmp = 0;
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        arr[0] = a;
        arr[1] = b;
        arr[2] = c;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 2; j++) {
                if(arr[j] > arr[j+1]) {
                    tmp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = tmp;
                }
            }
        }
        System.out.print(arr[0]+"->"+arr[1]+"->"+arr[2]);
    }
}
